package com.elasticsearch.demo.repository;

import com.elasticsearch.demo.model.entity.Role;
import com.elasticsearch.demo.model.entity.User;
import org.springframework.data.repository.CrudRepository;

import java.util.List;

/**
 * @author lanhai
 */
public interface RoleRepository extends CrudRepository<Role,Long> {

    List<Role> findByUserId(Long userId);
}
